package com.example.javajetpacktest.base;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import lombok.Data;


public abstract class BaseViewModel<T> extends AndroidViewModel {

    MutableLiveData<T> mutableLiveData = new MutableLiveData<T>();

    public BaseViewModel(@NonNull  Application application) {
        super(application);
    }


    public MutableLiveData<T> getMutableLiveData() {
        return mutableLiveData;
    }

    public void setMutableLiveData(MutableLiveData<T> mutableLiveData) {
        this.mutableLiveData = mutableLiveData;
    }
}
